package gui;

import java.util.Comparator;

import logic.file.IFile;

public class FileDateComparator implements Comparator<IFile> {

	@Override
	public int compare(IFile o1, IFile o2) {
		if ( o1.getLastModifiedDate() < o2.getLastModifiedDate() ) {
			return -1;
		} else if (o1.getLastModifiedDate() > o2.getLastModifiedDate()) {
			return 1;
		} 
		return 0;
	}

}
